Merge "Refcounting in allocations."