fix the primary variables VTK output module

now, element data can be handled even for vertex based discretizations.