[FIX] XQuery, GH-738: Variable uses not counted correctly in `case`.
Merge pull request #739 from LeoWoerteler/gh-738

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