Rewrite scoped arrays with template and introduced nullable one.

Single arugment constructor and reset method is not well supportd.
Drop them from Nullable and RW scoped array.

Test: m checkbuild && emulator
Test: m JniInvocation_test &&
      adb push ${OUT}/testcases/JniInvocation_test/x86/JniInvocation_test \
      /data/local/tmp/JniInvocation_test &&
      adb shell /data/local/tmp/JniInvocation_test
Bug: N/A

Change-Id: I3c7c07fb840e8130be3c015d9d5dd82167f5911f
3 files changed