small improvement to tupleref_elim_pass