Dump char and byte positions in save_analysis

First commit is #18562.

r?