Handling circular references with #implib

Handling circular references with #implib