[MIN] XQuery, GH-886: Better error message for static variables with the same name.
Merge pull request #892 from LeoWoerteler/gh-886b

GH-886: Better error message for static variables with the same name.