Temporal tables extension error with array columns
The problem is versioning.c:412:

 errmsg("column \"%s\" of relation \"%s\" is of type %s (%i) but column \"%s\" of history relation \"%s\" is of type %s (%i)",
                NameStr(attr-&gt;attname),
                RelationGetRelationName(relation),
                format_type_with_typemod(attr-&gt;atttypid,
                                                                 attr-&gt;atttypmod),
                attr-&gt;attndims,
                NameStr(history_attr-&gt;attname),
                RelationGetRelationName(history_relation),
                format_type_with_typemod(history_attr-&gt;atttypid,
                                                                 history_attr-&gt;atttypmod), history_attr-&gt;attndims)));


When I changed to show attndims, result was:

ERROR:  column "directories" of relation "test" is of type text[] (1) but column "directories" of history relation "test_history" is of type text[] (0)


I found the problem is in heap_openrv (PostgreSQL function) does not correctly fill this field for tables created by LIKE. I do not know how to repair it. But I found a solution:

CREATE TABLE test_history (
  id SERIAL PRIMARY KEY,
  a integer,
  directories text[],
  sys_period tstzrange NOT NULL
);


After that:

CREATE EXTENSION
DROP TABLE
DROP TABLE
CREATE TABLE
CREATE TABLE
CREATE TRIGGER
INSERT 0 1
UPDATE 1
 id | a | directories |                            sys_period                             
----+---+-------------+-------------------------------------------------------------------
  1 | 1 |             | ["2017-02-07 15:12:16.383449+02","2017-02-07 15:12:16.387419+02")
(1 row)