Support replication for values in array indexing