Update _wrap_function doc string, correct and test nansum out option