Fixed PHP-774: Mark MongoCollection::toIndexString as deprecated.

For this to work, I also had to separate it out as otherwise our own
ensureIndex() would throw a deprecation warning.