Some changes to how vertex arrays are handled