[FIX] XQuery, GH-867: ClassCastException in updating inline functions.
Merge pull request #876 from LeoWoerteler/gh-867

[FIX] XQuery, GH-867: ClassCastException in updating inline functions.