Fixing issue #142, problems with EnumMap, polymorphic types