[MIN] RESTXQ: Regular path tests added
[MOD] XQuery: rewrite numeric position tests in predicates
[MIN] Rewritings.