Add pg_fetch_object

Missed this one; just gets the basic version going as I'm not clear on exactly how the class_name param in zend would work and this was enough for my use case.