Lua Can't iterate MWScript variables
Global variables are clearly intended to be iterated, but that's currently broken - the pairs implementation uses numeric indices, but the index method isn't overloaded for those.
Script variables need a pairs method as well