Creates a new OId from a raw oid.
the raw input bytes to be copied.
a newly allocated OId or null on error.