Fix branchTruncateDouble() and probably convertDoubleToInt32().

Resolves ion/bug1000605.js.