Minor cosmetic improvements to upcaste-hash.