Add 'extend' function to dictionaries.