Make use of the list of Atoms in the class attribute in selector matchin...

...g.

Fixes #3111
I will go try it. I'm new to rust, I tried a couple of things like ```(AttributeHandlers)self.has_class(name)``` and ``` self.AttributeHandlers::has_class(name)``` but I was at a loss.