That works! Metadata is always serialized, so it isn't checked in this loop.

serialize_metadata (lines 731-742) is called on line 719.