sml: remove package and use module instead

- fixes across the board to use modules instead of packages
- delete unused types such as string table
cpp: fix visitor generation on reference models

We were incorrectly generating visitors on all cases, even when the
types that were visitable were coming from a referenced model rather
than the target model.