Preliminary array support added - need to modify the code to handle multidimensional arrays next