jni: Fix GC allocation in NewObjectArray()

Fix hard-coded nullptr and pass a proper class to gc_new_object_array().

Signed-off-by: Pekka Enberg <penberg@kernel.org>