Fixed a memory leak for java STRING_ARRAY

The allocation loop uses size, so the free loop should do the same,
not size-1.
Document Java char **STRING_ARRAY typemap fix