[MOD] Package-protected StaticContext#xquery3 flag.
[MOD] Updating the stack-frames code.
[MOD] GFLWOR optimizations.