- Added error checking Stats Lua wrapping.
- Added error checking for Tile Lua wrapper.