Print struct, union and enum declaration attributes

GCC allows attributes on type declarations as well as type definitions.
It probably does not make any difference to display them in both places,
but might have an impact when there is only a declaration.

Closes #137.