Make map/flatMap lazy on IterablePipe to address OOM

Fixes #977 

@krishnanraman take a look.
minor: should this be scaladoc comment? might be better to be a regular comment.