Front-end: Implement compile-time constant folding for any() and all().