Fix duplicate definitions of fields (now gettfields_fields) and nfields (now getfields_nfields) so that it will build with crlib (i.e. without collimat).
Re-implement the changes which were removed in #9aa97cd466cbb459a3028a9cf7103e38b7d54e19 + fix a few things which were forgotten in the original patch
Use select case for dynk_parseFUN() instead of if/elsif/...