[SPARK-2052] [SQL] Add optimization for CaseConversionExpression's.

Add optimization for `CaseConversionExpression`'s.
Good catch! Can you double check that constant folding works as expected and then remove the unneeded rules?