Fixed IndexBuffer to use reference semantics