Use a Perl HV instead of uthash to track nodes already seen when iterating

The uthash code wasn't actually working, and it's easier to just use the Perl
hash.
THe utf8 data output tests pass