Update igraph.functions.R

merge attributes: handle lists