WIP: update entry API to take a &ToOwned<K>, according to RFC #509.