fix chip compiler type.endsWith('ORGate') check that matched XOR gates too