PHP-1034: Ensure MongoCommandCursor implements Iterator interface properly

This also fixes memory leaks with parallelCollectionScan.