[FIX] XQuery: check type of bound context item