[4.2] Database\Query\Builder::groupBy() now accepts arrays as arguments

This is a bug fix pull request for branch 4.2 of the same issue described in issue #4843 that was for master.
Done.