Fix crash trying to constant fold boolean. Issue #49