Fix issue where left- and right-hand sides of equality exprs were emitted twice