[Yaml] fix priority of sequence merges according to spec

fixes symfony/symfony#11154
[Yaml] fix overwriting of keys after merged map

fixes symfony/symfony#11142