update printing attributes, clean up anon flag setting, move attribute transparent_union from typedef to its union alias