[overlay][is_valid] Replace int with signed_index_type for segments indexes.