Fixed bug when writing .fil files: the .fil file was sometimes transposed for some reason. The conversion from a 2D array to a 1D array was implicit instead of explicit.