convert unnamed enum to enum Repeat

and make it ": char". Making it a class requires more work,
unfortunatly.