tff.framework.merge_cardinalities

Merges dicts existing and to_add, checking for conflicts.