This is a serious flaw in the API, which has occurred somewhere between Blender 2.64 and HEAD.
The values from getVertexIndex are (I believe) per bucket, which isn't respected in the getVertex call. I'm not sure whether the issue is in RAS_MeshObject or whether it is before this point, but essentially calling offset = slot->AddVertex(texvert) returns the bucket vertex index
