COMPAT: median and nans in old numpys