Path collision after flattening nested and literal dotted keys
Bad input: Input contains both `{"a":{"b":1}}` and `{"a.b":2}` semantics.
Failure: Flattened output overwrites one value and loses source meaning.
Fix: Use escape strategy or alternative path separator with collision checks.