Fix segfault when positions are not 3 dimensional.

Context.setPositions currently segfaults when you pass it a list of lists of shape N x 2. This adds a length check to the vector<Vec3> typemap.