Fix Vector operations which rely on #replace_suffix
Fix Vector operations which rely on #replace_suffix

The previous implementation would fail on Vectors of specific sizes.

xaviershay/hamster,jack-nie/hamster,dzjuck/hamster