Revert "Change apply method with idFunction to withId method to avoid ambiguous overload issues."

This reverts commit f3923e60ef671f84c2d8ed46966e50e9c7961a1f.
Make default id be based on input index on datasets without and id function