Pass container to dispatcher in Capsule. Closes #1337.