Also validate size and stride parameters in calls to glVertexAttribPointer.