Delete rules from tries correctly.

When we delete a rule from a trie, we build up the new list, with the old rule
removed.  Previously, we were building up the list by repeatedly adding the
removed rule instead of the rule we're looping over.

This leads to fun issues.