first array implementation and some tests
bugfixes and more testing for arrays
more array tests+