Recursively checks if there are changes in the current structure. Returns immediately after detecting a single change.
changed item
current item
WeakMap to track circular references with comparison paths (internal use)
Recursively checks if there are changes in the current structure. Returns immediately after detecting a single change.