fix dupe ref and object recursion detection
goodbye spl_object_hash(), your 'unique' claim is false advertising
http://www.php.net/manual/en/function.spl-object-hash.php#76220