expanded merge for tuples to 22. added merge-tuple tests. moved code gen to seperate location