Merge pull request #2998 from yebblies/boolexp

Remove unnecessary class BoolExp
Remove dead function isBit