Yeah, I seem to also be drawing the lines incorrectly for a cubic bezier ... It's my understanding pathDataToRawBezier will return an array representing the bezier as a cubic bezier. The format of the array returned by pathDataToRawBezier; let's take the simple case where it just has one array because only one "M" command exists.
Okay, so given the above, based on the discussion at this point, it is my understanding the format is this:
[ anchor1X, anchor1Y, controlPoint1X, controlPoint1Y, controlPoint2X, controlPoint2Y, anchor2X, anchor2Y, etc ... ]
... and the array both starts and ends with anchor point coordinates. So, if this is correct, then the first control point should be connected to the first anchor point, and the second control point should be connected in a line w/ the next anchor in the array, as I understand it anyway.