Update TypeFactory to use TypeCalculator.type(c) for class.

The previous implementation did the wrong thing for classes that are
mapped to distinct Puppet types. It now relays to the
TypeCalculator.type when calling TypeFactory.ruby(o) with a class (as
this is the most common case).