[FIX] XQuery, inspect:function(). Closes #921
Merge branch 'stable'