Don't raise exception if filter already exists

In `add_rule` and `add_rule_temp`, don't raise `ValueError` if filter to be added already exists. It makes especially  `add_rule_temp` easier to use.
Add back filter to uniquify_layer_names

It turns out the "internal" filter in `uniquify_layer_names` makes things easier.