Small improvements to the dumpDenseBlocks() function.