allow reversing the circuit represenation. added support for multigate symbol