Fixed issue with same type being registered twice when using multiple
implementation registration.