Fix for parameter lists

The code generates the stub with bad parameter list because of the OOP and functional style documentation and duplicates all parameter.