Update getElementType method to support multiple words
Recurse through multidimensional arrays