PHP-1286: MongoCollection::count() segfaults due to a double free.
Merged pull request #776
PHP-1285: Add MongoDB::getCollectionInfo as per SPEC-54.
Fixed test.
Merged pull request #775