MDL-24962 backup - now destroying circular refs manually to help PHP 5.2