Improve handling of closing braces at level 0 in dnstidy.cpp.