Fix for d3.weightedMean.

Allows for large array numbers. See test.