also return critical value for significance
now properly account for NaNs in nulldist