Improve signatures of methods in CartesianEnumerator.