Cache hashcode for Symbols (minor optimization).