tosulliv: update to handle TINYINTs as booleans within middle-tier