Please consider not using eval(). It is the source of a great many bugs and opens up many security holes.
For example, now you must be sure that your string being evaluated does not have any variable name conflicts with GWT. Since the GWT compiler minimizes variable names and methods to single letters, using "N" or "n" in your evaluated string will lead to seemingly random behaviors. This is possibly exactly the source of your errors.
Sincerely,
Joseph