Fixed BatchedVertexArray and fixed some stuff in BatchManager.