made codegen use integer kinds for logical types