Merged index type setting to Mesh::setIndexBuffer() and added offset.

Now addVertexBuffer() etc. and setIndexBuffer() are even more similar.
Added missing const.