Fixing #146

Turns out that calling size or count on that scope causes the group by
to be applied AFTER the count which messes the whole thing.
We have to force it to become an array to fix the issue