Statically checked interior mutability

I discussed interior mutability in

If you have something interesting to add to the discussion, I can ask a moderator to unlock the thread, again.