Added test for reading and writing monoids.
Fixed bug in copy constructor of MonoMonoid that set all monomials to have a hash value of 0, leading to huge slowdowns.