Warn when attempting to set a value to a readonly field
Merge pull request #1329 from jnicklas/warn_on_set_readonly

Warn when attempting to set a value to a readonly field