Simple flatmap test.
Switched IteratorWrapper functor to template template parameter for greater flexibility and ease of use.