Buffer: Fix resize method being inefficient