Add TreeSink::complete_script
Fix print-rcdom