SI-7622 IcodeTest is sensitive to phase assembly

This delta is a straggler from the scala repo.

The compiler wants flexibility in its phase assembly,
so IcodeTest, which probes icode per phase, must reciprocate.

The sister commit in scala won't fly without this.  I haven't applied any brain power to a workaround.