fix(json): preserve rehydrated element identity

Merged
RO
2mo ago
+366-29

Summary

Preserve serialized element IDs and source metadata when partition_json() rehydrates Unstructured output. Generic JSON metadata and deterministic ID processing now apply only to arbitrary JSON, while explicit metadata overrides remain supported.

Fixes #3365.

Verification

  • Added a fail-before/pass-after full element-dictionary round trip
  • Passed all 60 applicable JSON partition tests
  • Passed whole-tree Ruff lint and formatting checks
  • Passed changelog and package-version synchronization

One existing deep-recursion expectation is excluded because it fails identically on current main under Python 3.13.