MAINT: Use a.sum(...) rather than np.add.reduce(a,...)  in nansum.

Pandas has a work around for the first case, but not the second.

Closes #3849.
Merge pull request #3852 from charris/pandas-fix-nansum

Pandas fix nansum