R: fix igraph_version, add a test for it