Added the serialisation constructors to the node classes