[FIX] XQuery, function compilation: reset context value