add consistency checks for fields of presets and presets in categories
do not write any data files if preset validation fails
Merge pull request #2103 from tyrasd/validate-presets

add consistency checks for fields of presets and presets in categories