Rename #from_ruby_class to #type

The name "type" reads better with the other method names. Later it will
be able to produce the type of a PType (which plays the same role in the
puppet typesystem).