Track cycles by names.
Allow nested imports with circular imports detection.