Fix dependency cycle detection

This fixes dependency cycle detection in the concurrent compiler and
includes a test case therefor.
Merge pull request #55 from KlausTrainer/fix-dependency-cycle-detection

Fix dependency cycle detection
Merge branch 'next' of ../joxa-erlware into next