Fix bug with modules exporting only one symbol
Add the `export_submodule` function
Merge branch 'export-submodule' into develop