ScopValidator: smax expressions are no parameters

This fixes PR18155 which is a regression introduced in 152913.