[MIN] XQuery, minor tweaks
[MOD] XQuery: removing downgrade call (still buggy)
[FIX] XQuery, serialization; tweaks