Always create a block in generated code.

Closes #273.