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