Handling circular references with #implib