only try to load the class if it's a valid module name

This allows subtypes to define coercions from invalid module names, by
e.g. substituting a standard prefix for names starting with ::
Merge pull request #1 from ilmari/dont-load-invalid-names

only try to load the class if it's a valid module name