Fix double registration of a complex type

Under some circumstances already registered complex types are
registered twice in DefaultComplexType::addComplexType()