handle getvartype properly