Serializes a node.
Called by the framework when it needs to serialize a collapsible node.
Reimplemented in CBCGPOutlineNode.