Add a mybind_res_t constructor for enums