[FIX] XQuery: speed up positional access in Filter expressions; fix bug