Introduce new refcounts infrastructure.