Since I'm not making much progress here, let me ask a counter-question: how would you implement SetUnitPosition (or any other SetUnit* Lua callout) if the signature was
instead ofSetUnitPosition(number unitDefID, number x, number y, number z)
...?SetUnitPosition(number unitID, number x, number y, number z)