yorick: when raytracing, support using arbitraty size arrays as indices.