bezier-curve: Add BezierCurve toArray and coord getter/setter methods
bezier-curve: Add Point dot method.

Used in nearest point calculations.