Check that make_valid_commands doesn't drop any commands

If it does we might generate bad parallelisations.
Added metadata to reg_eqc_2