Make use of the list of Atoms in ClassSelector

Make use of the list of Atoms in the class attribute selector
(ClassSelector) in selector_matching.

Fixes #3111
Merge pull request #3213 from gilles-leblanc/issue-3111

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