eFexTowerBuilder: handle invalid codes and add debugging functionality
Invalid codes from supercell readout (flagged by provenance&0x40) need to be flagged with code 1022 in the output to be properly emulated.
This MR also adds some debugging functionality to this algorithm.