add error message if the metric registry parameters are identical

guards against #815