Fix unused warning in container::resize in Release mode