fix issue where packages may have duplicate declares
Merge pull request #2 from squarit/20140929-fix_duplicate_package_declare

fix issue where packages may have duplicate declares