foldMapM - a fold for accumulating a monoid inside a monad

This is a convenient specialization of `foldLeftM`, when the type parameter `B` has a `Monoid`.