export int_to_enum/2 and enum_to_int/2

int_to_enum/2 and enum_to_int/2 is very useful for the end users in many
cases. Many other languages provide such functions, too.