Add scope to YAML output hash.