Add test case for circular dependencies.
Remove unused import.
Enable stack purity, by default.

Overlapping distributions are not allowed in each stack.  You
can get the old behavior by setting the allow_overlapping_distributions
stack property.