Medians are now computed correctly

Addresses issue #1853 .  Turns out they were being compared as strings :joy: