Changed some char fields in itype.h to int fields

fixes #4741