simplify package structure

First of all, each submodules contained both an object and a package object
with the same members. For now, only the package object is used.

This change was prompted because the redundant objects were called
`typeClass`, and since there were also traits called `TypeClass`, this caused
massive confusion under case-insensitive file systems.