VPP-86: fix array copy in generated JNI code