Mark immutable fields as such.

This leads to a small speedup (~2.5%) on the composed Richards benchmark, for
example.