improved chunk logic to handle non sequential object ids.
improved chunk logic to handle non sequential object ids.

Esri/ArcREST,adegwerth/ArcREST,BrunoCaimar/ArcREST,DShokes/ArcREST,pLeBlanc93/ArcREST