ex_convert.cc: extract ex2evalue from range.cc