Add GRefPtr::outPtr() and use it in a couple places.