Make behavior of IndexedSeq#groupWhen and groupWhenM match List#groupWhen and groupWhenM