bezier-curve: Add Segment split/toArray/toJSON methods.