BUG: fix np.median so it accepts array_like input.  Clean up median test...

...s.

Bug was introduced in 4d9cd6954.