Standardized error where EnumMap type objects are used as invocant when they shouldn't