apply_tolerance function

Applies a threshold to all nonparametric distributions in a <dist_spec>