mapMaybe + tests

`Data.Maybe.mapMaybe` for `InputStream`
Spurious deletion