Fix d3.median: coerce strings to numbers.

Fixes #2069.