My exported yaml/yml file has this format:
[? "yes": apple ]
This indicates a complex mapping key and is comparable to ["yes": apple]. Please see this spec for more information and let us know if your yml library has a problem with this syntax.
For Symfony users, here is an alternative library to support complex mapping keys.