datalog: preserve original column names when reordering groupby

Signed-off-by: Daniel Halperin <dhalperi@cs.washington.edu>