The description of keytype incorrectly said it had to be unique: it's the whole key that must be unique, not the keytype (since we can for instance have multiple xpubs in the global map).