Models are JSON::Serializable only; YAML output goes through JSON::Any, which emits the same document YAML::Serializable would.