encode_value: Don't regard the variant dispatcher as a CFUN.
The variant dispatcher is a CFUN that may show up in pure Pike
programs, so don't fallback to the C-program encodings when
the only CFUN is the variant dispatcher.
Potentially fixes dumping problems with Crypto.RSA.State
(where generate_key() is a variant function).