Return group_by permutations for flattened data

The `Scenario: flattened queries are shifted to the first non-zero _count` behavioural test has been removed as the range shifting behaviour is no longer needed (cc @mharrington).