fix #9322 test for yaml reference dumper