use oidcpy() for copying hashes between instances of struct object_id