Vertices in order

A bunch of more or less silly bugs was fixed. Vertices are now (from
what can be deduced from debug output not committed) apparently orderly
created and reproduced.