Bundle nested classes and companions together.

Emitted classes are grouped in bundled defined by their
so-called representative class, which is basically
their enclosing top-level class.

Companion modules and implementation classes of traits
are bundled together with their class or trait.