Changed all functions in vm/core/src/memory.c taking a memory size as jint to use size_t instead.
rvmAllocateMemoryForArray() will now detect overflow and throw OOME if the total size of the requested array is larger than the maximum size_t value.