Fixes int overflow in ComputeScalarRange.
The overflow causes the computed scalar range to be wrong in arrays with numTuples > std::numeric_limits::max().
The overflow causes the computed scalar range to be wrong in arrays with numTuples > std::numeric_limits::max().