Issue found and fixed with simplification circuit involving multiple xor
gates.  Should be checked with other gate types as well.