Adding helper methods for enums and enumvalues. This gives better high order functions to the types.