Make sure the constant value of a field does not change

Fixes #20