Fix AppendingLongBuffer/Iterator.hasNext. This method failed to return the right result when the total number of values was a multiple of MAX_PENDING_COUNT = 1024.