Replace the custom metadata serialization with the one provided by the ContentProperties class. This fixes the breakage if multiple property values per key are in use.