Fix int32 and smi shift operations for 64-bit.