Templatify DominanceFrontier.

Theoretically this should now work for MachineBasicBlocks.