Implement DoubleNode serialization