Adds mapM to StreamT

mapM threads a per-element monadic effect through the stream

Cherry-picking pull request #363 (b944293)
fix Function1Comonad#cojoin

Cherry-picking pull request #385 (055e0b3)
Make glorified Foldable `identity`s into actual `identity`s.

Cherry-picking pull request #386 (bcbff83)