Rationalised IO of keyType so the internal structure is not duplicated in if-else structures in dictionary::entry.