Reset global _yaml state between tests
_yaml.pyx has two global variables _FILE_LIST and __counter that are not reset between tests. This may result in tests behaving differently when invoked individually and when running as part of the test suite. This may have been the reason why #1051 (closed) has not been noticed earlier.
We should reset global _yaml.pyx state between tests, possibly as part of Context cleanup.