Network.export() only writes the "type" key if it's a ChanType.QUERY; so the config on disk has no "type". This causes it to be undefined when loading, which breaks various other checks, and then drops it the next time the config is saved.