WL#1077: CASE optimization

Affects: Server-7.1   —   Status: Un-Assigned   —   Priority: Medium

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.