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

Add optimization for `CaseConversionExpression`'s.
Just use `UPPER(LOWER(str))` or `UPPER(UPPER(str))`, or something like those.