mad(v): avoid checking for NaNs when taking the median of deviations.