Implement Sequence::grouped()