Classes bound by name into container were not receiving parameters

This has never worked since getClosure was added, so apologies if I've misunderstood and it's deliberate. The test case in this PR shows what I'm expecting to be able to do.