mapMaybe + tests

`Data.Maybe.mapMaybe` for `InputStream`
Two typos on this line.