fix list serialization with metadata