Serialize hpo-tree and annotation-map.