replace links depth handling in collection dump