Only validate attrib setting when setting user attribs.
Merge pull request #227 from VictorLowther/make-attribs-easier-to-use-from-the-framework

Only validate attrib setting when setting user attribs.