segment: is_segment renamed to is_connectable_segment and improved