Fix bug with uniques in case expressions.