support list elements as values in YAML tree reordering