Serialization now handles the different kinds of nodes.