Fixed typos in CascadedPolygonUnion

binaryUnion needed to cast mid index to an integer.
some functions expected a javascript.util.ArrayList and a js Array was
used.
fixed other variable name typos.
Merge pull request #129 from icetan/fix-cascadepolygonunion

Fixed typos in CascadedPolygonUnion