Functions gcd and lcm now have the same behaviour for positive and negative integers.