Added test cases and fixes for GWT JSON parsing