[Config] Fix YamlReferenceDumper
handling of array examples
#54372
+22
−18
YamlReferenceDumper
handling of array examples
#54372