Optimize for loop by use of System.arraycopy instead
Merge branch 'optimize_loop'