[MOD] XQuery, #966: Speeding up "castable as" expressions (a little)