Add unit tests for ArrayType and SimpleStringType
Refactor the ArrayType a little
Add a test for the null array