Fix resize broadcaster so that components can be deregistered before rendering

Close #1245.
Add unit testing to ResizeBroadcaster registration.
Would a better answer be to set
this.autoResizeManualSetting = AbstractComponent.AUTORESIZE_BY_DEFAULT

at the beginning then doing this ternary check?