Fix a subtle issue in SmallVector. The following code did not work as expected: