add #[experimental] as_string/as_vec functions

This provides a way to handle common cases like searching in any kind of
set or map with `String` keys using `&str`.