also support `IndexedSeq`s as a generalization of arrays
cleanup