fix addAttribute for Node and Edge

makeAttributeInstance was called as if it was a global; it should be called on the
Attributes instance of the owner Graph.