Dump user defined types with handler functions (can be used to override
dump of built-in types).
Merge pull request #7 from dawryn/master

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