Fix typo in XML writer.

Many thanks to @pa5cal for pointing out, in issue #4, that the
relation member type was being determined from the member's ID,
rather than its actual type.

This fixes #4 by using the `member_type` field correctly.
Merge branch 'master' into densenodes