Import grammars and functions along with schemas and mappings

no need to load them at import, but we have to save them for classloader availability

(from redmine: issue id 616, created on 2018-01-22tgradl)