Iterator tests, and fixed a bug with SlicedIterator.
Merged.