fix bugs in new stretchy buffer code, add stretchy buffer tests