Add rel.types field, update serialization code and sample extractions.
Merge branch 'master' into link
Merge pull request #8 from rbart/reltype

Add type field to relation