PHP-1226: Add support for the new listIndexes command in 2.7.5

Some of this is also in #741 , which should be merged first.
Per comments in #741, `db.c` takes care of this.