Call final_check() before adding/removing a rule.

This fixes #101.