Fix glViewer crash for Win Debug build

- switch std::vector::reserve() to resize() so that boundary check on read doesn't have a size 0 vector

fixes #362