[FIX] XQuery, inspect:function(). Closes #921