Also remove stray static method comments from being incorrectly
generated into the PINVOKE class.
Add some missing multi-line tests for static methods, variables and
constants.
To correctly parse Doxygen post-comments after the trailing comma,
switch to right recursion in "enumlist" production rule definition: this
does consume more stack space when parsing, but makes the rules much
easier to write and to understand and hopefully shouldn't result in any
problems with real code (which shouldn't have thousands of enums items
in it).
Closes#1514.