Deprecate using a with block with arguments.

It is confusing to have different behaviour depending on whether the
block has arguments or not, and there are better ways to do this.

References #377.