Added test for possibility of duplicate mappers in 'usedMappers'
hierarchy, and a fix in initializeUsedMappers to avoid this possibility