Add more Array functionality, update tests to use Arrays.

Change-Id: I6c7080faa0ed623e7a302a9a928111b3a9494ec0
Merge topic 'array-fixes' into master

469b0b3d Add more Array functionality, update tests to use Arrays.