Factor out bitfield-to-string code to src/attribute-util.h.