improve support for Arrays and add Tests for Arrays
improve test code coverage