(PUP-485) Add ability to give assert_type a type as a String
This adds the ability to also give the type as a String (it is
parsed with the TypeParser). This is good when reading the type
specification from an external source that cannot directly serialize
a Puppet Type.