add more array parsing unit tests; minor bug fixes