Added support for more than two dimensions.

Added support for more than two dimensions.
This change will change the metric name of all metrics, which previously
already used two dimensions, because of the more generic ordering of the
different items in the metric name.