Add pre-allocated varbuffer constructor.