Cleanup, read me changed
Get object type from Oid

This can be implemented with less cost, but it's good enough
for a start.