add a strong/weak reference counted pointer type