Adding np.nanmean(), nanstd(), and nanvar(), gh-3297 branched.

This is PR #3297 put in a branch and resubmitted so it can be worked on. Needs some fixups which will follow.