Issue 13232 - avoid expensive template instantiations on module import

- hide std.uni.TrieBuilder instantiations behind functions
Merge pull request #2392 from MartinNowak/fix13232

Issue 13232 - avoid expensive template instantiations on module import