CLEANUP: Native code for median/mad did unnecessary tests for NA/NaN even when they could not exist.