added better wrapped nansum in toolsExternalWrapped