tools/smaz: add a roundtrip check option to help debug new code