irdump: cleanup, make dump_blocks_as_subgraphs() available to other modules