Shapes that have their GraphicsAlgorithm recreated will no longer lose
selection during resizing.

Closes #37.