[Reference] update the configuration reference

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Move some `versionadded` directive to right position and add missing
type information.
This really makes sense. I also updated the Doctrine reference in the same way.