Make variable conversion in the ParaView writer more generic.