Ensure forEach returns the correct number of iterations for all base collections