Make DefPersistentRooted a template, IGUIObject heap rooting changes