Make Progam.set_vars() a bit smarter so it can ignore elements that are not used.
ElementBuffer needs DTYPE2GTYPE mapping.
For consistency also give VertexBuffer such a mapping.
Refactored the Texture a bit so it uses the same names.