R: add unique id to graphs
R: better handling of data type versions

We have an explicit version field in the graph now.