[FIX] XQuery: (re)setting static context