CompareDump: fix reporting bugs. The top stack entry was missing (!) and we had an off-by-one in the index computation.

CompareDump: fix reporting bugs. The top stack entry was missing (!) and we had an off-by-one in the index computation.

Also, all of this should be rewritten from scratch.