Try to fix updating classes in Autoreload....
Try to fix updating classes in Autoreload.
There seem to have been some infinite recursion in the previous version
of the code, so implement a more classical graph finding algorithm.
This should still be properly tested