support Bool datatype in cppgen