[IBAL] Fix overflow in loop counters when iterating over service entries.