move getPublicKey into abstract WrappedKeyRing (also, fix getPrimaryUserId)