[SPARK-4268][SQL] Use #::: to get benefit from Stream in SqlLexical.allCaseVersions

In addition, using `s.isEmpty` to eliminate the string comparison.
> Given that these are all materialized eventually

Didn't realize it. However, then why not use List? Since laziness is not necessary, using Stream is confusing.