Unfortunately, currently, the analyzer core sets the checker name after the constructor was already run. So if we set the BugType in the constructor, the output plist will not contain a checker name. Right now the idiomatic solution is to create the BugType lazily. This patch updates the some checkers to follow this idiom. I also found some bugs, when some checkers were triggered even if they were not enabled or wrong checker name is emitted to the plist.
In the future probably it would be better to alter the signature of the checkers' constructor to set the name in the constructor so it is possible to create the BugType eagerly.
nit: I prefer to use '{' here since the if body spans multiple lines.