Fix the issue with interfaces and circular reference.

This PR reworks on the same issues initially fixed in PR #19 and #30 by @cabello by moving the fix to the graph navigator.