gumbo: refactoring stringize_attrs to use range adaptor