Attributes should refuse invalid values
When deserializing, some check should be done to make sure the values won’t crash FD or cause inconsistent behavior.
For instance BaseAttribute should refuse non-string values to avoid fd-plugins#5793 (closed) Also SetAttribute should refuse non-array values (may be done with type hinting).