Generic metadata.

Make metadata on nodes and edges generic.