Fix some issues with the export

- No need to export template functions
- Expose some template instantiations