Despite all my other notes about not doing ref counting for vecs, I could not talk myself out of it. I'll post a test version of vec.dll which does ref counting soon.
I will be based on the latest version of vec.c you posted, so pls don't do any more updates to vec for now.
