Added support for registering singleton behavior on components.