fix a bug in yaml_doc method do_match that was causing tests to pass that should have failed