Add a utility to set attribute values to their default, use it in a few places that have already done this samething. Also: - Don't create resolution or cyclic attributes unnecessarily - Use API function to set new curve's type - Always create the new selection on the curve domain - Remove selection before resize to avoid unnecessary work