AMBARI-22359 : Fix Serialization issues in Metric Definition Service (avijayan).