fix converting cheatlist value_type to and from bytearray