Remove duplicate addresses before converting to dictionary

Fixes #14.