Rearranging code to get rid of compiler internal error (g++-4.6.4)
Further cleaning up
[WIP] Working on host-side merging of vector tuples