SI-6961 maintain structural sharing in list serialization.

After the decision made on the meeting, reverting list serialization back to
what it was in 2.9.x and before.
We do not guarantee that structural sharing is maintained in serialized lists.

Review by @phaller