workaround ruamel.yaml issue 255, where once an empty dict or list has been written, 'flow' style is used thereafter, using dense `{key: value}` form instead of traditional yaml block style.