Add: minor improvements to the hash map implementation.