Fixed bug in Monad which called flatten_with_monad on hashes.