Type converters

/to @raymondfeng 

This PR adds the ability to specify a custom type converter. This is used from loopback to convert "DataType" to the concrete model type.