Write Tecplot header based on the dimension of the actual elements

I ran across this issue when trying to write a "3D" mesh full of Edge elements.

This is a pretty straightforward change, but I don't use Tecplot much and didn't want to merge it without any discussion...  Also, does anyone know if Tecplot can handle meshes with elements of mixed dimension?