Fix cut-and-paste mistake in mem_val_as_string

Load type should depend on the type, not always be byte.