[fr] improved rule ELISION.
Minor cleanup to rule checks.
Improved detection of invalid exceptions and speed up avoiding
a use of matches(...) where we could do without matches(...).