transforms/tools: support NameConstant
transforms/fold_constants: support BoolOp