Remove unused reference to `key'
Remove redundant traits, add to_str() and simplify clear()