Add GRefPtr::outPtr() and use it in a couple places.
Use GRefPtr as often as possible.