Fix array monkey patch

seems like a good solution given how .sum is being used.