cpp: FormatWriter: MetadataRetrieve must be set before setId
cpp: FormatWriter: Correct setId behaviour