Fixed passive dependency resolution for singletons.

Fixed passive dependency resolution for singletons.
Creates only singletons during initialize.