Yes. In order to get the amounts to go to the right places, we've had to add the extra boxes.
For box 21, you would enter your Foreign capital gains (if any) in the first one. In the second box 21, you would enter your Total capital gains in the second box, including your Foreign capital gains.
For box 26, the second box is for other investment income, while the first box is for other income that isn't investment income.