Get the type of lynx_value.
lynx_api_status lynx_value_typeof(lynx_api_env env, lynx_value value, lynx_value_type* result);
Returns lynx_api_ok if the API succeeded.
lynx_value_type type; lynx_api_status status = lynx_value_typeof(env, value, &type); if (status != lynx_api_ok) { // handle error. }