Added a ContainerResult object to store both the registered type and life cycle type in a single object.