One solution would be, I think, to always pass tee-d copies of iterators and never(!) any iterator like it is (because you don't know whether next() has side effects or not). The other solution would be to not ever do anything lazy. One could also always consume all iterators fully. That way any generator re-use would be apparent immediately.
Some function that moves a generator forward just one or two items (something with the semantics of findFirst, for example), can subtly introduce bugs.