EZP-23441: Made DynamicSettingParser a bit smarter

Also checks that delimiters count makes sense.