[FIX] Avoid infinite recursion in StaticUserFunc#databases(..).
Merge pull request #665 from LeoWoerteler/gh-663

[FIX] Avoid infinite recursion in StaticUserFunc#databases(..).
[MOD] XQuery: more compact notation of error messages
[MOD] XQuery, format-date/time: parsing code revised