UPCGMetadata::Flatten

Unparents current metadata by flattening the attributes (values, entries, etc.) and potentially compress the data to remove unused values.