Lua: Add integration tests for the 'allowArbitraryDataAccess' setting

Change-Id: I69a84c2e7dfdd5acb99836d9aba356304c7ad381
(cherry picked from commit 0f4e6e0c33c037985e55c2a513cef5aba479b99d)
Merge "Lua: Add integration tests for the 'allowArbitraryDataAccess' setting" into mw1.24-wmf14