RectangleGeometry was not properly invalidating rect.
Fixed type mismatch for TextBox cursor.