Fix nullable of CaseWhen to be nullable if the elseValue is nullable.
Add some tests.