Metadata tracking works properly with embedded structs