Add obj_ref->oid cast
Add functions to create obj_ref records from oids
Use functions to create specific obj_ref records
Omit empty records from drop and create statements
Use SECURITY DEFINER for alter function
Remove erroneous copy-pasted comment
Fix bug in recursive dependency traversal