fn extract_prototype(val: &RValue) -> Vec<(String, RValue)>
Extract prototype values from a named list or named vector.