allow having multiple types in the Array module
use proper class for array iterator on C#
also use iterator class on java
Merge pull request #2594 from nadako/cs_array_iter

use class for array iterator on c#