adding hook for configuring custom types

This allows for registering a custom type handler fn, the next step is probably adding docs on how these handlers should operate since now there's a public API for adding more.