bezier-curve: Add BezierCurve fromArray class method.

Fix incorrect property access in BezierCurve coordinate getter/setter
functions.