Raise more useful RuntimeError on circular dependency