Removes lists from dictionaries