tweaked a couple things in array.c, used the swap macro in a couple places I did an explicit swap before and changed xmalloc's in iota and rand-array into xmalloc_atomics