EnumSyntaxChecker: use the new equivalence

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>
EnumKeywordValidator: use the new equivalence

Signed-off-by: Francis Galiegue <fgaliegue@gmail.com>