[JPEnv] free jni options after jvm creation
[primitive arrays] Changed jni release mode from JNI_COMMIT to '0', because the
temporary buffer val is not freed in JNI_COMMIT.
Merge pull request #49 from marscher/fix_memleak_primitive_array_setters

Fix memleak primitive array setters