Fix d3.mean: coerce strings to numbers.

Fixes #2067.