Fixes #41 Make sure that the property is writable before generating a setter method.