add custom type and typeid resolvers