Fix some logic in the I/O tpl scheme: write pointwise fields and fluxes