bezier-curve: Switch between Endpoint types on dblclick.