Fix crash when updating a constant struct member to another constant