Allow circular dependencies

Fixes #692.