Support for iterator spying. Closes #4.