Writing to the `curve_type` attribute directly is not allowed as there are other updates needed and otherwise will result in a crash. The fix makes sure the `curve_type` is read-only. To change the curve type, the `grease_pencil.set_curve_type` operator has to be used for now.