Fix casts for mouse events on RenderWindow & premature view destruction.

This fixes issues with negative values on mouse position and wheel delta for mouse events on a RenderWindow.

This also fixes premature destruction of wrapped views.