add support for inserting terms as an array