Add a test which reproduces an infinite recursion in the case of cyclic dependencies.
Remove infinite recursion in case of dependancy cycles.
This patch is also an optimization in the case of highly connected acyclic graphs
Implement code review suggestions.
remove comment and fix typo
another typo :(
Merge pull request #97 from awatters/infRecursionFix

Inf recursion fix (in package dependencies) with test