Wysiwyg scripts: corrections

*Fix #708
*Fix #711
* Inputex generator assumes objects to be global.