Adding array setters for terms

Previously setting a value by array index would fail silently. Now you
can set properties with []= (e.g. ```subject.title[1] = 'A title'```).