A class that validates array bounds when working with sequential items.