Add table prefixes to groupby. Fixes #12