Using (un-)serialize() on a collection is not a supported use-case
and may break when changes on the collection's internals happen in the future.
If a collection needs to be serialized, use
toArray() and reconstruct
the collection manually.
A reconstruction is also necessary when the collection contains objects with
infinite recursion of dependencies like in this
Serializer libraries can be used to create the serialization-output to prevent errors.