Added types to attachments

This would be a bit better as `type.parameterize('_').pluralize`.