PHP-1041: Fix off-by-one error in MongoCommandCursor::key() indexes

https://jira.mongodb.org/browse/PHP-1041

The first result document should have index 0, not -1.

----

This PR depends on #643, which is included in the branch, although it will be rebased accordingly.