Add .. index:: directives to populate genindex.html
Use “pair” for method index entries