[LMP] Initialize the rules regexps only once.

Somewhat helps for #1751.
[LMP] Ad-hoc field matchers memoization for #1751.

We don't need to construct the matchers most of the time anyway.
[LMP] Set new rules list on rules change iff changed.

Finally closes #1751.