TBF, if I were you I'd add a bunch of prints w/ debugstacks to see what and where is registering styles
-- edit #1
I mean add the following code
here:
Lua Code:
print("style:", name)
print(debugstack(2, 2, 0))
This way you'll be able to see from where RegisterStyle was called.