FPCGMetadataDomain::FlattenAndCompress

Unparents current metadata, flatten attribute and only keep the entries specified.