match MRI: allow an enum to be specified as return type

returns symbol for enum member represented by integer value
matches MRI FFI