I have written an example which takes three integer variables (dimX, dimY, dimZ) and creates an array of type T which is accessed via an index() function. If you find any errors or stupid code please comment. I hope this is useful for you all.
https://github.com/kendavistoo/Multidimension-Array-Example