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

Error message for Issue #659 is `[XPTY0004] Cannot treat element() as element(a): <b/>.` again.