Fix typemap for Fortran ordered array input

The typemaps with size parameters after the array pointer were correct,
but the typemaps with size parameters before the array pointer created
arrays with C ordering.
Merge pull request #4809 from adamreeve/swig_typemap_fix

Fix SWIG typemaps for Fortran ordered array input