Minor tweaks to cpConvexHull. Returns the result array instead of the new length, and checks
Compiled