Make indicies prefixed by package / namespaced by the package they are inside

This makes it so that indexes are now identified by the package as well as the string of the type which is the index. This also updates things like the import commands so that the package name / namespace needs to be specified.

TODO:
- [ ] Test more thoroughly