Fixed the creation of 3 global variables:

p in Options.lua
pixie and path in Perspective.lua
Removed code section that does nothing (both tbl and index are not used in UpdateUnit)
Added some local function references, only some with the exact name :)
Could you move this local definition out of the for loop so that here it's still pixie = pixies[i], but local pixie gets declared once to remove the global?