Fix new group behavior for vectorized dd and dpd.