Extracted array related asserts to ArrayAssert.