[FIX] XQuery, GH-698: Function literal variables allocated in the right stack frame.
Merge pull request #699 from LeoWoerteler/gh-698

[FIX] XQuery, GH-698: Function literal variables allocated in the right stack frame.