Fix tracing with non-default row_factory

For PYTHON-49