Sorry I now realize UnaryUnionOp cannot be used directly from the ES5 build, since it requires access to emulated ArrayList.
However, you can use Geometry.union without an argument and so use it on a MultiPolygon (not sure that makes sense) or a GeometryCollection containing only polygons which should trigger the use of CascadedPolygonUnion via UnaryUnionOp. This is only what I can conclude from the source, I haven't tested it myself so I'm not sure it will work but at least it is supposed to work that way. Please report back any results.