Support indexed access on all arrays
error checking