spline/bezier fix and support flat shading

OK, I'll fix it later. Thanks.