Issue #882: Split up the static array iteration test into one for Array and another for the Java arrays.
And make the tests for Java array iteration more comprehensive.