Clear circular refs to allow object destruction

Remove child nodes from all elements after rendering them to clear circular references, thus allowing object to destroy.