Adding foldM to Monad and a test

Pretty small change but it could be nice to have. 

It's implemented in terms of flatMap and apply so it should work with everything. I made the list part GenTraversable since I don't see a nice way to do it with GenTraversableOnce.