Change assertion in group_array_slice to more useful message