storage default to std::vector and misc fixes

Simple hack so that resize won't re-allocate memory if not necessary.