Fixed bug with use_ram case

Set dtype to float32 for migration arrays to be compatible with the 'f'
option in hdf5 files.
Changed order of stack_grid array to 'F' so that the resize command
works as expected.