[FIX] XQuery, GH-690: QueryContext#module(...) should check functions.
Merge pull request #691 from LeoWoerteler/gh-690

[FIX] XQuery, GH-690: QueryContext#module(...) should check functions.