Working on the clear_referrer logic.

- Correctly hadle built-in types with modified __dicts__.
- Removed the need for custom binding destructors.
- Moved cleanup logic into bind.py.