[bugfix,documentation] Fix spelling in a comment
Rename private data member 'index' to 'index_'

According to our naming rules, all internal data members are to have the _ suffix.
Incidentally, this also fixes a name clash with the newly introduced method
also called 'index'.

Thanks to Tobias Malkmus for pointing this out.