Fix generators after refactoring links and introducing attachments

The `Links` is now Links::List, and attachments are now organized in
`Attachment::List`.