Lua 5.2

Updated all AAA-dependant functions to be compatible with Lua 5.2
(specifically the deprecation of arg)