Nah, fuck that. `ref_target` will return NULL if the ref is not the right type, so let's just make sure `oidFromC` handles NULLs properly.