Use References instead of IdentityDict in name_binding