Modified oid_ent_to_oid so that if proto is general, then class