Avoid creation of nested blocks in the IR
Merge pull request #363 from OP2/fix-nested-blocks

Avoid creation of nested blocks in the IR