Add MCRI::getNumSubRegIndices() and start checking SubRegIndex ranges.