Fix bug in setters for object state array values.