Made generate-lua-ooc.lua more generic.