Add safe constructor for QuadBox.