Replaces String cast with unsafe cast where it is safe

Unfortunately, GWT compiler doesn't optimize cast that are guarded
with instanceOf checks which results in double checking for casting.
This patch fixes such double checks in critical emul code for String.

Change-Id: I2d3176bf2d41d3b0cc22747422d6d4c032ee3761
3 files changed