Encode simple arrays of tables