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