Make registering types chainable