support bool for rostopic -p (#3948)