Fix issue on match

There where incomplete patterns when pattern matching
in addNodeMatch.
Change node and edge interfaces.

Instead of a tuple with type and payload, we now
use type and payload as full members of the respective
data types.