Scoped primitive arrays: allow them to be null

Sometimes there is a pattern where you may have an optional argument to
a JNI call. Instead of throwing NullPointerException which would be done
on required arguments, let the programmer create the scoped array and
reset it to the value if it's determined later that the argument was
provided. This eliminates the need to handle raw primitive array objects
and the chance that they will accidentally leaked.

Change-Id: Ic701b33e710b292ff9a63e75c7b763f4ce71e011
1 file changed