list instead of set for collecting dependencies - we want a predictable order and duplicates will be weeded out anyway by the Production class
Code for new, simpler build algorithm is now complete and without syntax errors. Next up: actually switch to it and remove the old algorithm.
switched to new, simpler build algorithm
removed old build algorithm