(x) Fixed issue that ServiceLocator could not resolve the same type again after the TypeNotRegisteredException was thrown, and after that the type was registered