roll: pigweed pw_containers: Make item type deduction generic

This CL moves generic intrusive container and item functions to a
standalone file, and renames them to avoid mentioning lists. This makes
them available to be reused by other intrusive containers, such as the
forthcoming intrusive maps.

Affected functions include the item type deduction checks for and the
assertions for containers and items before insertion or destruction.

Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/235105
Original-Revision: 7f4759a3877ac31bb0b0b2799a759d13382d9bba

Rolled-Repo: https://pigweed.googlesource.com/pigweed/pigweed
Rolled-Commits: 25c8b842ecfa6d..7f4759a3877ac3
Roller-URL: https://ci.chromium.org/b/8736421620712237601
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: Ie835215ac06126149c3a05909a5bfa89f24dfd87
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/showcase/sense/+/236722
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
diff --git a/MODULE.bazel b/MODULE.bazel
index f9ce481..2b0b3df 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -50,8 +50,8 @@
     module_name = "pigweed",
     # ROLL: Warning: this entry is automatically updated.
     # ROLL: Last updated 2024-09-18.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8736423526797576241.
-    commit = "25c8b842ecfa6d530b785d61c1fab105b352bcdd",
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8736421620712237601.
+    commit = "7f4759a3877ac31bb0b0b2799a759d13382d9bba",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
 )
 
@@ -59,8 +59,8 @@
     module_name = "pw_toolchain",
     # ROLL: Warning: this entry is automatically updated.
     # ROLL: Last updated 2024-09-18.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8736423526797576241.
-    commit = "25c8b842ecfa6d530b785d61c1fab105b352bcdd",
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8736421620712237601.
+    commit = "7f4759a3877ac31bb0b0b2799a759d13382d9bba",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed",
     strip_prefix = "pw_toolchain_bazel",
 )