fixed the use of group_by in array notation, related #307