Increase reference count for array elements
Merge pull request #2441 from Benglin/RC0.7.2_master

Increase reference count for array elements