Warn if a ControlObject is created twice. Fix some warnings.