Referencing counting cleanups.

Refcounting is the devil's work.