Add name attribute to blocks.

This addition makes it easier to distinguish between added blocks when reordering or inserting them.