Fixed bug with filtering iterables.
Generators now "reset" after a loop even if the loop ended early.