Fix bug in Container: registered services would not get injected properly on automatically created instances.