Let group_by rename variables. Closes #447