Changes all Arraylist iterators into Arrays to avoid concurrent
modification