Added support for byte enums

I ran into this issue today and came up with a fix.

I had to remove the PublicKeys for this to build on my machine.