Dump user defined types with handler functions (can be used to override
dump of built-in types).