[MOD] XQuery: iterative type check implementation
[MIN] Formatting
[MOD] XQuery, Map operator (!): better context item check
[FIX] XQuery: copy cached path expression, using Expr instead of Step