fix dump() recursion detection

only detect recursions for table values.