fixed resize() for packed and alloc string