fix bug in emit_tupleref on homogeneous tuples of structs