WL#1077: CASE optimization

Affects: Server-7.1   —   Status: Un-Assigned

As soon as we aggregate all WHEN argument types, we can do optimization
like it is done in IN implementation in the case of constants.