[RenderScript] Fix value size data type in closure creation.
Same change as the native RS part.

b/19944127

Also added references to arguments and global values in a closure to
keep them live in Java while native code may access them.

Change-Id: Icc189df881b17efb2931eea5879c55abf71c7213
2 files changed