Move NUM2INT() before EVP_PKEY_CTX_new()

Previously, if NUM2INT raised an exception, the call to
EVP_PKEY_CTX_free() would be missed, leaking the CTX memory.
Update README