[FIX] XQuery, GH-659: Better error description for node tests (e.g. `element(foo)`).
Merge pull request #669 from LeoWoerteler/gh-659

[FIX] XQuery, GH-659: Better error description for node tests (e.g. `element(foo)`).