Make map/flatMap lazy on IterablePipe to address OOM

Fixes #977 

@krishnanraman take a look.