Fix a checksum-filename typo and add some debugging helpers.

Clearing out some queued-up changes for #511.