vars: remove 'type' attr from everyone except modules
sim: Sim constructor takes a module.

When simulating the root model, it is helpful to think of it as a
module with no parent.  That is, a 'module' is conceptually an
instance of a named model.  Running the root model implicitly creates
an unnamed module.