Do constant folding for unary operations.