Add optimization arguments to dereferenceWikidataEntities
Tests will pass after function-schemata!258 (merged) is merged and pulled through. We should proceed in this order:
- Get approvals on this MR and function-schemata!258 (merged).
- Merge and pull through function-schemata!258 (merged).
- Merge this MR.
Bug: T382921