Updates to main-stats and wiz-stats to remove m_ptr->r_idx.

This compiles and passes tests for me, and both stats modules run to the point of dumping data. I have not double-checked that all of the changed functions actually do the right thing, but it should be okay.