Fix resize broadcaster so that components can be deregistered before rendering

Close #1245.
Add unit testing to ResizeBroadcaster registration.
I agree, I think it make sense keep svg in only in tests, which checks rendering.