R: slightly better attribute api, #699

graph_attr, vertex_attr, edge_attr, can now query and set all attributes,
even for a subset of vertices or edges.