Fix collections as top levels of (de)serialized graph