array decl should put array type in environment
give more context to exceptions
make sure to synchronise in reduce
make the reduce test larger
generate the correct VectorArray constructor