make <scan::_declarations> forgiving of closing "}"
folded class tests