Adds getContainer to ResolveContext

In some cases the container itself needs to be injected. In these cases the container itself is needed, which is only available from the context.