Convert mType + mIndex to a single mType of type ind

This should have happened ages ago, but I didn't have a good way to do it until
now.  The index type ind just works though.  And by magic the arrays can be
indexed 63 bit instead of 31.