sim: cpu_sim: fix bit/byte confusion; fix typo; add ram dump to debug output