NH-3741 - Many to many mapping with interfaces.

Fix mapping bug when generic collection contains interfaces instead of entities (Jira #NH-3741)