AMBARI-4273. Update yaml parser/escaper for different type of values
(aonishuk)