Fix problem with field counting when not running with FOF and/or STF
This merge request fixed a problem in the counting of output fields to write. get_ptype_fields()
now checks whether FOF and/or STF is activated, and discounts these fields if not. The fields are still written when only generating a complete field list as output.