Cleanup
Don't manipulate the filter in `uniquify_layer_names`

Replacing `LayerData.filter` internally caused more trouble than it's worth. To uniquify without parents and without modifying the non-empty layer groups, simply add a rule that filters them out.