[FIX] XQuery, QT3TS: XQST0046_01
[MIN] cleanups
[FIX] XQuery, K2-Serialization-5 (output of hex entities)
[MOD] XQuery, VarScope: duplicate check removed (saves time)
[FIX] XQuery, format-integer(): updated to latest version of the spec.