sum_from_dict() replaces trim_by_year_all()

and is more general.