Support Predicate expressions in CaseBuilder

Fixes #1027