Fixed some bugs, made gcd work for ResidueRings and Polys over them.