fix indirect dependencies handling bug, improve cyclic dependencies debugging tools