Fixed bug with shorthand curves: if previous command was not curve of the same type, control point was calculated incorrectly.