Use proper bit width ans sign extension for const folding
Fixed const folding of ternary operator
Merge branch 'master' of github.com:cliffordwolf/yosys