Fix constant folding returning boolean values
Merge pull request #206 from pbrunet/perf

Fix constant folding returning boolean values