Inference for sequential experiments with an adaptive treatment allocation and/or an adaptive stopping rule