Limit the maximum number of values in a dictionary for various components