The GEXF format only specifies a set if fairly simple data types. In your example you are setting the edge data attribute "likes" to be a list
G.add_edge(0,1, likes = ['milk', 'oj'])
which is not handled by the GEXF writer.
If you stick to strings, numbers, etc then you won't encounter this issue.