EnumMap allows only enums of the same type as given on constructor