Make as many statics consts as possible.

Fixes fallout from the current nightly.