Always release Java array elements

While the [google results] jury appears to be out about whether
hotspot ever returns non-copied elements or not, the memory obtained
from Get*ArrayElements calls must always be released, whether copied
or pinned.