Exploration into better support for custom type handlers