rename groupByM to groupWhenM for Vector

cf e0ffd38f34a1fb40b1a39790cd00a2fb8fc6ac1e