Converts the dynamic block reference to a static block.
If newBlockName is not specified, an anonymous block is created.