Add NaNs, infinities and overflows support to sum

Stats::sum handles NaNs and infinities as
elements in the list.
In addition to that, it also detects overflows.

Note: Stats::sum is using std::vec_ng:Vec to
improve its performance.