PHP-1245: Split out php_mongo_dbref_get to get rid of MONGO_METHOD for MongoDB/MongoCollection::getRef.
PHP-1245: Split MongoCollection::findOne into a C function and use from php_mongo_dbref_get().
Merged pull request #789