Modify EVP_CIPHER_is_a() and EVP_MD_is_a() to handle legacy methods too