Rename getReshapedIndex to reshapedIndex
Add rdb persistence for matrix type