Add support for using class name as registered type name