Fix genkinds.pl to avoid trailing ,s and ;s

Logical continuation of 4b2123bd, for the auto-generated
ASTKind.{h,cpp} files.