Bugfix: on eliminating identity sum_node-s, the new parent should not be
stored in self.defined_vars, even if the sum_node was a defined_var;
this led to deleting all the exp nodes