Initial preparations for container handling.

This rips out the port of a previous approach, stubs the current one
that is needed for Rakudo, and updates the serializer for it.