Got rid of some indexing problems in rack

Iterating through the array based on indecies wasn't working
because in .add and .remove functions would rearrange the elements

Possibly: use an iterator; the current solution is to deep copy the array
(not very expensive, only 7 bytes each time)