Added tests and docs for MetricRegistry.name.

Closes #349.