Get the OID pointed to by a reference.
Only available if the reference is direct (i.e. not symbolic)
The reference
a pointer to the oid if available, NULL otherwise