fix C pointer coercion problem when coercing signed/unsigned char* to bytearray
fix C pointer coercion problem when coercing bytes to signed char*