[WIP][Yaml] reproducing bug #8077 yaml sample should be equivalent

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8077
| License       | MIT
| Doc PR        | no

The parsing should be identical according to results from http://yamllint.com/ :baby: