Add check that underlying type of KRPCEnum is int