Fixes Issue 9408 - Make invariant non-const by default and settable to const.