girparser: only replace ref/unref funcs with better matches