R: fix bracket trick in graph.attributes<- (for #20).
R: transfer new operator tests to testthat (#20).