fixes #17380 Use baseClass of widgets instead of data-dojo-type which is not relevant for forms created programmatically
fix trailing comma in array literral
fix ctor call syntax (broken after a.b.c.->a/b/c batched renaming)
fix syntax errors
fix unused local variables
fix assignment errors
fix missing ;