Fixed typo and gave more detail in error message about multiple registrations for a type