Fixed checking for a value larger than a finite range would raise a StopIteration exception
Added decorator for auto-wrapping iterators in CachedIter