Added possibility to reset singletons.