fix memory leak in to_list for Dictionnaire.ml