Simplify RefCountPtr implementation