added const to ConstArray::Index()