remove duplicates from aliased ids
make sure to check of portal_factory exsists, not installed by default in plone 5
Merge pull request #132 from martior/master

Fixing some problems with a stock plone 5 install without Archetypes installed