Make outlets work inside block helpers

This is a proposed solution for #1662. 

It still needs some unit tests, but before I do that I'd like some input on whether this is really the desired semantics.