Clear namedBlocks when template is finalized