Fix ViewBox tests to work on non-IE browsers.
Also makes ViewBox fallback to window.onresize for non-IE browsers.

Fixes #125.