Renamed typeOfEnums -> enumsType
Added equality test for enums