Add method to determine if a component has already been registered.
Object can be either a type Class or an instance key or object.
Used to allow RegistrarAssistant to register default implementation of ErrorsContext and MessagesContext only if these have not already been registered by user.