Update to match implementation of emfjson.
Added GWT tests