fixed array with simple types, added test
Merge commit '450b3c7ed5605c597a9dfb2a6cbf22447a516e92' into java_fixes

# By Tony Tam
# Via Tony Tam
* commit '450b3c7ed5605c597a9dfb2a6cbf22447a516e92':
  fixed array with simple types, added test