fix a critical bug in smallvector, where it would destroy elements that are