qmp: Clean up type usage in qmp_memchar_write(), qmp_memchar_read()