This looks so interesting that I can't resist
The first thing I noticed is that libFilters has a few loops like this:
Lua Code:
function(slot)
local result = true
for _,v in pairs(filters[filterType]) do
if(v) then
result = result and v(slot)
end
end
return result
end
These should do an early return, once any of the filters returns false, the result is final. I will send changes to Randactyl later; but this little thing can only cure some symptoms, not the disease (if the disease is filters accumulating in the list). So I guess I'll need to dig deeper