ParserStatistics: code style, some logic fixes

With sets in particular.