[FIX] XQuery, GH-738: Variable uses not counted correctly in `case`.