Enhance ListDictonnary

This patch enhances ListDictionnary so that you can set callbacks for
keys and for values.