Fixed bug in cppgen to do with not putting a parentheses in a logical operator.