[FIX] XQuery, Java bindings: consistent parameter handling