new method IntList.toReverseArray() and tests