function avalue_to_svalue

static VALUE avalue_to_svalue(VALUE v)