Fixes issue #1458; corrects some cases of bad JS output from JS code generation.  Also optimizes parenthesis output where it's not really needed.

Patch by: sgross
Review by: me

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1511 8db76d5a-ed1c-0410-87a9-c151d255dfc7
8 files changed