Tested and fixed resize() non-const interface