ChainCompile: Better dependency traversal.