hashmap: Add the ability to free keys