RF: allow generic header to specify memory layout

Just in case someone needs the generic header to write in C order rather
than F order.
Merge pull request #225 from matthew-brett/generalize-header-data-layout

RF: allow generic header to specify memory layout

Header base class can specify C as well as Fortran memory layout.