Fix partests with the optimizer.
Merge pull request #846 from sjrd/fix-partests-with-optimizer

Fix partests with the optimizer.
Fix printing of 'void 0' as '(void 0)'.
Remove genIRFileText from GenJSFiles.

It's been useless since we had scalajsp.
Merge pull request #847 from sjrd/fix-printer-undefined

Fix printing of 'void 0' as '(void 0)'.
Merge pull request #848 from sjrd/small-cleanup

Remove genIRFileText from GenJSFiles.