Fixed const folding in corner cases with parameters
Fixed sign handling in constants