fixed resizeArray, completed tests for it, and added some array related constructors