Detect dependency cycles earlier and print a better error.