BatchedDataPoints iterates to the proper index when timestamp()/isIntege...

...r()/longValue()/doubleValue() are called.

TestBatchedDataPoints unit test