update Fortran back end
fix runtime reallocation for linear indexing, #index < #dimension.