support axis=None for nanmedian ( issue #7352 )

This fixes issue #7352, where ``nanmedian`` does not work when ``axis==None``.
you can just pass ``check_less_precise=True`` if its a complex number (or explicty astype before the comparison)