sl2: Introduce three levels of const-ness.

This lets us distinguish compile-time constants from expressions
that are const within a single screen.
Re-prepare screens when rebuilding styles.
Add gallery testcase.