Array index refactor

Added index objects to array that can be used to access objects for indices in an array.