Change arrays to indexedseq