fix printing issues related to boolean (tinyint) fields