Make typeconverter properly use the classes from type definitions