Make rectangle, ellipse, and text tools consistently stay selected after creating a shape

Fixes #56.
Fixes #269.