ZWrapper.resolveKey() is supposed to return the resolved version of a zobject key. This was broken in https://github.com/wikimedia/mediawiki-services-function-orchestrator/commit/ffcb8e454e092f07501c8bbbafc30a0c48abd0df because when the key is an argument reference the resolved version is not stored, so resolveKey() returns the unresolved version.
Not sure how to fix it without breaking the original issue (https://phabricator.wikimedia.org/T310085).
Blocks fix for dynamic scoping (https://phabricator.wikimedia.org/T309195).