Fix unpacking agent relationships

The switch to using only remote IPs broke a relationship unpacker. This
fixes it.
Merge pull request #155 from guidow/fix_agent_unpacker

Fix unpacking agent relationships