various integer fixes: gcd, shift, decodeDouble, fixes test/ghc/array/arr013.hs