oid: do not load the object when expanding

We now have a function which lets us expand an id prefix by checking for
existence and uniqueness instead of loading the object with that id.