utils.grouper: Improve implementation
Loader-tar defines a slightly different utils.grouper to deal with iterable of tuples. This improves the generic definition to deal with that case. That allows to remove some code in the loader-tar.
Related swh-environment#1411 (closed)
Test Plan
tox
Migrated from D793 (view on Phabricator)