Added dumps method to MetadataStore, changed merge_metadata.py to take advantage of this.