When SameParameterValueOptimizer substitutes a value for a parameter, it now casts the value to the type of the parameter. This prevents, for example, treating an integer as a long. Review by: scottb git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@7338 8db76d5a-ed1c-0410-87a9-c151d255dfc7