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

Add optimization for `CaseConversionExpression`'s.
Fixed the two points.
Should I remove the mentioned lines?