Move somewhat messy conditional out of line.
No functional change.
Add a way to grab a particular attribute out of a DIE.
Use it when we're looking for a string in particular. Update comments
as well.