Passing arrays in now work. More tests and docs