Add arrays to metadata