add arrays to the reader and printer

Arrays are just plain Lua arrays, which are mutable