Fixed some typos and syntax errors in the Twig reference

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | -
combining ``:ref:`` and the ``_`` at the end looks wrong to me