better group_by support for complex getters