[vertex] Templated almost everything

Since world, model and all these things are generic and should handle
all kinds of vertices they all have to be templated.