Implemented exporting of collection to YAML, in addition to JSON.