Optimized pushing arrays from C++ to Lua and added more error handling for Lua
Merge