Sum array explicitly to avoid ActiveSupport bug