Important global.lua update, added functions

Added all the missing table.~ functions, needed in alot of files, but haden't been added, update the last lines asap if you have modifed global.lua!