Reverse arrays

This reverts commit 5de7b5e0b6d3689897c98e418e5f6f1103bf8168.