André's magic reference member variables

Also started to add index array handling to the vertexBufferObject.