Add support for custom types derived from types.TypeDecorator