Fix parsing of Boolean type

/cc @cuongdd2 @giabao