ENH: extend index conversion to matrices
Merge branch 'master' of https://github.com/stnava/ANTsR