removed visited check in _explode_vartrees from depgraph.
switched to sets of edges instead of nodes
need to check differently for visited
merged in other fix