Macro joining Thrift structs.

Likewise, here you could do the duplicates detection first and then work off the results of that.