Add support for (nested) arrays and datetimes