If we allocate samplerSO2 to be a subspace sampler, we don't need to worry about much. We can just do:
```
copyState(state, goalState); // copies everything.
samplerSO2->sampleUniform(state); // this knows it is a subspace sampler and only fills the SO2 part, leaves the rest of state untouched.
```