Dexterity compatibility

Make the add-on work with Dexterity. Tested with types from plone.app.contenttypes on Plone 4.3. Should work with 4.2 and 4.1 too.