resource::parse_path(): corrected adjacent tag and max tag handling.