Fix MarshalJSON to follow other writers pattern.

Usage: metrics.MarshalJSON(registry)

See: https://github.com/rcrowley/go-metrics/issues/52