return correct type name
Merge pull request #12 from jrf0110/12-custom-objects

When custom data types are used, objects do not receive correct type name