BUG: add signed flag to chars

Sign of char is undefined and there are numerous places where its sign
is important. Fixes tests with -funsigned-char.
Closes gh-1110
Ah you are right. It used to be different (bool) in the original version. Sorry.