Added support for nested objects in YAML.