Fixed some ShapeType and finalization bugs.

Also fixed a shape type change selection bug, improved the BrushWidth
and ShapeType properties' code a little, fixed some hover point bugs (by
rearranging some code and also drawing on the ToolLayer when no
ShapeEngine is active - it gets erased afterwards), and made a few other
minor changes.