Do not generate scalar setter for readonly properties

Modified machine templates so as not to generate scalar setters for readonly properties