fix Issue 3449 - const and invariant struct members do not behave according to spec
Merge pull request #4042 from 9rnsr/fix3449

Issue 3449 - const and invariant struct members do not behave according to spec