Adding e.g. a Collection Info node creates a new depsgraph relation. Therefore the relations should be updated.
This just moves a couple of files in `space_node` to C++ and fixes related errors. The goal is to be able to use C++ data structures to simplify the code. Differential Revision: https://developer.blender.org/D11451