resize did a zero-initiliase instead of a default initialise. This did not work for value_type's that have no constructor that takes an int