Simplify binding sort function to use cyclicDependencyStack for cycle detection instead of a temporary mark in bindingsConsidered. Rename variable in inner loop so it's different from outer loop (to avoid confusion).