reversing the order of layers in refl1d script generator