Under some circumstances, auto-registration doesn't work, call this function to ensure types are registered.