Fix colour swap for stack component

Selecting a group changes display order of SVG elements.
We now ensure that the element order is correct on re-render.
Merge pull request #187 from alphagov/55718768-fix-stack-colour-swap

Fix colour swap for stack component