Increase reference count for array elements
Merge pull request #2440 from ke-yu/fix_memory_corruption

Increase reference count for array elements