Added support for custom types when mapping TypeSymbols