Fixes #3293: add possibility to striclty enforce content of section in file