DQUtils: Fix test failure with py 3.9.
repr() can allocate a list object the first time it's called, which causes the gc check to fail. Avoid by making sure that that happens before the gc check.
repr() can allocate a list object the first time it's called, which causes the gc check to fail. Avoid by making sure that that happens before the gc check.